package com.knife.interfaces.aspect;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author tianhao.luo@hand-china.com
 * @version 1.0
 * @date 2021年12月31日 星期五 10:52 上午
 * @description
 * @since 1.0
 */
@Component
public class KnifeInterfaceLogAdvisor extends AbstractPointcutAdvisor {

    @Autowired
    private KnifeInterfaceLogPointcut knifeInterfaceLogPointcut;
    @Autowired
    private KnifeInterfaceLogAdvice knifeInterfaceLogAdvice;

    @Override
    public Pointcut getPointcut() {
        return knifeInterfaceLogPointcut;
    }

    @Override
    public Advice getAdvice() {
        return knifeInterfaceLogAdvice;
    }
}
